-- overriding default plugin configs!

local M = {}

M.treesitter = {
   ensure_installed = {
      "vim",
      "html",
      "css",
      "javascript",
      "json",
      "toml",
      "markdown",
      "c",
      "bash",
      "lua",
   },
}

M.nvimtree = {
   git = {
      enable = true,
   },
}

M.telescope = {
   extensions = {
     -- fd is needed
      media_files = {
         filetypes = { "png", "webp", "jpg", "jpeg" },
      },
   },
}

M.nvterm = {
   terminals = {
      list = {},
      type_opts = {
         float = {
            relative = "editor",
            row = 0.1,
            col = 0.1,
            width = 0.8,
            height = 0.8,
            border = "single",
         },
         horizontal = { location = "rightbelow", split_ratio = 0.4 },
         vertical = { location = "rightbelow", split_ratio = 0.5 },
      },
   },
   mappings = {
      toggle = {
         float = "<A-i>",
         horizontal = "<A-h>",
         vertical = "<A-v>",
      },
      new = {
         horizontal = "<leader>b",
         vertical = "<leader>v",
      },
   },
}

return M
